

import javax.xml.stream.XMLStreamException;
import java.io.*;
import java.sql.SQLException;


/**
 * Desc:
 * Create by Myth on 10/9/2018
 */
public class Main {

    public static void main(String[] args) throws FileNotFoundException, XMLStreamException, UnsupportedEncodingException, SQLException, ClassNotFoundException {
        XmlProcessor xmlProcessor = new XmlProcessor();
        xmlProcessor.openMysqlConnection();
        String filePath = "Posts.xml";
        xmlProcessor.parsePosts(filePath, 30000);
        xmlProcessor.closeConnection();
    }

}
